import java.util.ArrayList;

public class ArrayOps
{
   /**
      This method goes through the array of integers identified by
      the only parameter, creating a new ArrayList from the array,
      but in reverse order.
      @param theArray, an array of integers
      @return reversedArr, the new ArrayList of Integers

   */
   public static ArrayList copyReverse(int[] anArray)
   {
      // declare new ArrayList
      int l=anArray.length,k=0;
      int[] Array;
      for(int i=l-1;i>=0;i--){
         Array[k] = anArray[i];
         k++;
      }
      for(int i=0;i<l;i++){
         anArray[i] = Array[i];
      }
      return anArray;
      // your work here

      // loop though anArray, in reverse,
      // storing each element in the ArrayList

      // your work here

      // return new ArrayList

      // your work here
   }
}